const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  pluginOptions:{
    electronBuilder: {
      nodeIntegration: true,
      builderOptions:{
        "productName": "喝水提醒",
        "appId": "com.jxx.drinkalert",
        "nsis": {
          "oneClick": false, // 是否一键安装
          "perMachine": true, // 安装的时候是否为所有用户安装
          "allowToChangeInstallationDirectory": true, // 是否允许用户改变安装目录， 默认为false
          "deleteAppDataOnUninstall": true, // 是否在卸载时删除应用程序数据
          "createDesktopShortcut": true,
          "createStartMenuShortcut": true,
        },
        "win": {
          "icon": "./public/logo.png"
        },
        "extraFiles": [
        ],
        "asar": true,
        "mac": {
          "icon": './public/mac-logo-512.png',
          "identity": "123"
        }
      }
    }
  }
})
